using I2.Loc;
using UnityEngine;

public class Item : MonoBehaviour
{
	public string title;

	public int cost;

	public int buyableAfterDay;

	public int unbuyableAfterDay;

	public bool showable = true;

	public float weight;

	public ItemType type;

	public bool turretUsable;

	public GameObject prefab;

	public Item requireItem;

	[TextArea(10, 20)]
	public string description;

	public int limit;

	public int quantity = 1;

	public int inGamePriority;

	public string Title
	{
		get
		{
			string translation = LocalizationManager.GetTranslation("Item/" + base.name.Replace("(Clone)", ""));
			if (translation != null)
			{
				return translation;
			}
			return title;
		}
	}

	public string Description
	{
		get
		{
			string translation = LocalizationManager.GetTranslation("Item/" + base.name.Replace("(Clone)", "") + "Desc");
			if (translation != null)
			{
				return translation;
			}
			return description;
		}
	}
}
